package com.zhoukx.builder;

/**
 * @ClassName AbstractHouse
 * @Description:  房子类
 * @Author zhoukx
 * @Date 2020/8/7
 **/
public abstract class AbstractHouse {

    // 打地基
    public abstract void buildBasic();
    // 砌墙
    public abstract  void buildWalls();
    // 封顶
    public abstract  void roofed();

    public void build(){
        buildBasic();
        buildWalls();
        roofed();
    }
}
